package com.zhentao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhentao.model.common.dtos.PermissionResult;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.common.pojo.management.UserInfo;
import com.zhentao.model.common.pojo.management.dto.req.SysUserDto;
import com.zhentao.model.common.pojo.users.param.UserInfoDto;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author mp
 * @since 2025-01-03
 */
public interface IUserInfoService extends IService<UserInfo> {

    ResponseResult login(SysUserDto sysUser);

    ResponseResult userInfo();

    ResponseResult logout();

    PermissionResult csRun();

//    ResponseResult initUserCount();
//
    PermissionResult getUserList(String userName);

    PermissionResult addBlackList(Integer userId);

    PermissionResult getRoleList();

    ResponseResult registry(UserInfoDto userInfoDto);

    PermissionResult updateUser(UserInfoDto dto);


    ResponseResult deleteUser(Integer userId);
}
